import java.util.Scanner;
public class Lab03_Task3 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String line = s.nextLine();
if (line.length() % 2 == 0) {
String first = line.substring(0, line.length()/2);
String last = line.substring(line.length()/2, line.length());
System.out.println(first+" "+first+" "+last);
}
}
}